﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

#pragma warning disable CS8618
namespace OpenAiProxy.API.Models
{
    /// <summary>
    /// 账户表
    /// </summary>
    [Table("account_info")]
    public class AccountInfo
    {
        [Key]
        [Column("id", TypeName = "varchar(32)")]
        public string Id { get; set; }

        /// <summary>
        /// 设备类型(0-Windows，1-Android，2-Browser, 默认0)
        /// </summary>
        [Required]
        [Column("device_type", TypeName = "tinyint unsigned")]
        public byte DeviceType { get; set; }

        /// <summary>
        /// 设备Id
        /// </summary>
        [Required]
        [Column("device_id", TypeName = "varchar(32)")]
        public string DeviceId { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Column("remark", TypeName = "varchar(100)")]
        public string? Remark { get; set; }
    }
}
